<?php

namespace App\Transformers;

use App\Models\Cash;
use League\Fractal\TransformerAbstract;


class CashTransformer extends TransformerAbstract
{

    public function transform(Cash $cash)
    {
        return [
            'id' => $cash->id,
            'mem_name' => $cash->mem_name,
            'act_result' => $cash->act_result,
            'act_result_str' => $cash->act_result_str,
            'currency' => $cash->currency,
            'mem_gold' => $cash->mem_gold,
            'min_sum' => $cash->min_sum,
            'memo' => $cash->memo,
            'key_date' => $cash->key_date,
        ];
    }

}